#include <iostream>
#include <cstring>
using namespace std;

int main(void)
{ char c,i,n;
char s[10];

cout<<"Dati sirul de caractere: ";
cin.get();


cout<<"Dati caracterul cautat: ";
cin>>c;

if (strchr(s,c)!=NULL)
  cout<<"Caracterul apartine sirului ";
else
  cout<<"Caracterul nu apartine sirului ";
}
